package training.second;

public class Circle extends  Shape{
    private double radius;
    public static final double PI = 3.14;
    public Circle() {
    }

    public Circle(String color,double radius) {
        super(color);
        this.radius = radius;
    }

    @Override
    public void calculateArea() {
        this.setArea(this.radius * this.radius * PI);
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
